Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Sametime wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL forums and blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
Search
Community Articles > Sametime Advanced > Sametime Advanced troubleshooting > Troubleshooting DB2 issues in Sametime Advanced
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Managing policies for Lotus Sametime Classic 8.5.x

All Sametime users are automatically assigned to a default policy. You can create non-default user policies, and assign users and groups to these policies.

Managing policies for Lotus Sametime Classic 8.5.x

All Sametime users are automatically assigned to a default policy. You can create non-default user policies, and assign users and groups to these policies.

Best Practices for DB2 maintenance in Sametime

IBM Lotus Sametime uses DB2 databases. Most of the maintenance for DB2 has been automated, and database backup and recovery is fully outlined in the DB2 information center. See "Developing a backup and recovery strategy" at http:publib.boulder.ibm.cominfocenterdb2luwv9index.jsp. IBM ...

Developer resources for Lotus Sametime Standard 8.5 & 8.5.1

This page provides resources for developers, including demonstrations, product documentation, and education offerings. You can add your own links to this page too. The wiki monitor will integrate your links into the page as appropriate. Add a link

Monitoring availability, performance, infrastructure, and beyond using IBM Lotus Sametime

Ever wonder how to know what the status of your IBM Lotus Sametime environment is?  Discover how Lotus Sametime can be monitored from the user perspective.  This article describes (and provides) a simple lightweight tool to assist administrators in better understanding the Lotus Sametime user ...
Community articleTroubleshooting DB2 issues in Sametime Advanced
Added by ~Dana Dwonusonakoi | Edited by IBM contributor~Sanjay Dwoponegen on January 11, 2010 | Version 6
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: DB2, Sametime Advanced, troubleshooting
ShowTable of Contents
HideTable of Contents
  • 1 Where to look for exceptions or errors
  • 2 How to look for performance issues
  • 3 How to look for CPU heap issues for DB2
  • 4 DB2 database has been dropped and needs to be recreated
  • 5 Using the Information Center DB2

Where to look for exceptions or errors


db2diag.log

About DB2 diagnostic log (db2diag.log) files:
  • Setting the diagnostic log file error capture levelexternal link
    Related reference
  • Diagnostic error capture level configuration parameterexternal link

If the STA throws a db2 error, you can get the error code with db2 ? SQL0000W (or whatever the code thrown is). If it is a sqlcode: db2 ? sqlcode 00001 or whatever the number is. Also, you can look them up in the documentation (IBM DB2 Database for Linux UNIX and Windows Information Centerexternal link). There should be a link to online docs added when db2 is installed.

How to look for performance issues



Logging tables for the text indexes. (DOC)

Turning on the collection of statistics. Run the following from db2:


Note: It is important to keep the below command all on one line! 
db2 update dbm cfg using DFT_MON_BUFPOOL on DFT_MON_LOCK on DFT_MON_SORT on DFT_MON_TABLE
		on DFT_MON_UOW on DFT_MON_STMT on DFT_MON_TIMESTAMP on MON_HEAP_SZ 8192


without that, when you do a get snapshot, most of the numbers say "not collected". The command should be dynamic, but sometimes you may need to restart the db before it is picked up to reset the numbers to 0.

So, try:

db2 reset monitor for database


How to look for CPU heap issues for DB2



A database server should use most of the memory on the machine, but never more than is on the machine. So no swapping. One way memory can be managed by changing the bufferpool sizes. Memory must be set much smaller if the appserver is on the same machine as the db server.

When the db is created an autoconfigure command is used. (See blow for AUTOCONFIGURE usage) It shows how to use that command to see how your configuration settings compare with what it tells you. It is likely that you will want to change the bufferpool settings, and to set them to automatically (dynamically) change as needed
Sometimes, autoconfigure can set the bufferpool sizes too big for the db to start.

Using AUTOCONFIGURE

It is possible to modify the database configuration after installation. If the DBA desires to re-run the autoconfiguration command with different parameters, the command would be: "db2 AUTOCONFIGURE USING MEM_PERCENT 50 TPM 1500 ADMIN_PRIORITY PERFORMANCE ISOLATION UR APPLY NONE" This will provide output to the screen where the DBA can compare suggested settings to the current ones. One note is that for interactive performance, the AUTOCONFIGURE command will recommend small recovery logs, and no secondary recovery logs. While much of the use of the database is interactive, the index updates generate large transactions that require larger recovery logs than interactive use would. It is therefore recommended to retain the size and number of recovery logs rather than going with the AUTOCONFIGURE recommendation.

How to monitor CPU for DB2
See How to monitor CPU for EB.

DB2 database has been dropped and needs to be recreated

  1. Extract createDB.bat and orgcollab.ddl from ocpersistence.jar/config from a sta801 gold install
  2. Run createDB.bat dbname (this populated the database) from Program Files - IBM DB2 - DB2COPY1 - Command Line Processor
  3. Find security.xml and disable security (WAS\profiles\profile_name\config\cells\cell_name\security.xml, set security:Security .... enabled="true" to false)
  4. Restart WAS
  5. Add db2 client jars to WAS classpath
  6. In the admin console go to Servers - Applications servers and click server1
  7. Click on Java and Process Management and Select Process Definition
  8. Click on Java Virtual Machine
     aste the following in to your classpath:
	C:\Program Files\IBM\SQLLIB\java
	C:\Program Files\IBM\SQLLIB\java\db2java.zip
	C:\Program Files\IBM\SQLLIB\java\db2jcc.jar
	C:\Program Files\IBM\SQLLIB\java\db2jcc_javax.jar
	C:\Program Files\IBM\SQLLIB\java\db2jcc_license_cu.jar
	(This is the path that the DB2 Client got installed into)

9. run wsadmin
10. run setupIdMgrDBTables command as follows:
$AdminTask setupIdMgrDBTables {-schemaLocation "/etc/wim/setup" -dn "o=SCCS" -dbPropXML "/etc/wim/setup/wimdbproperties.xml" -databaseType db2 -dbURL jdbc:db2: -dbAdminId -dbDriver COM.ibm.db2.jdbc.app.DB2Driver -dbAdminPassword -reportSqlError true }
example: $AdminTask setupIdMgrDBTables {-schemaLoc
ation "C:\servers\WebSphere\AppServer\etc\wim\setup" -dn "o=SCCS" -dbPropXML "C:
\servers\WebSphere\AppServer\etc\wim\setup\wimdbproperties.xml" -databaseType db
2 -dbURL jdbc:db2:amatevos -dbAdminId amatevossian -dbDriver COM.ibm.db2.jdbc.ap
p.DB2Driver -dbAdminPassword amatevossian -reportSqlError true }
Wait for message that the command has successfully completed.

11. Remove db2 client jars from WAS classpath
12. Re-enable security (find security.xml and set security:Security .... enabled="false" back to true)
13. Restart WAS

Using the Information Center DB2



Starting and Stopping DB2
Updating your DB2 administrator password
Tuning DB2



  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (6)
collapsed Versions (6)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (6)Jan 11, 2010, 4:32:02 PM~Sanjay Dwoponegen  IBM contributor
5Jan 10, 2010, 9:32:07 PM~Keiko Ektumisonlen  IBM contributor
4Jan 10, 2010, 9:04:30 PM~Keiko Ektumisonlen  IBM contributor
3Jan 10, 2010, 9:02:16 PM~Keiko Ektumisonlen  IBM contributor
2Jan 8, 2010, 10:36:50 PM~Keiko Ektumisonlen  IBM contributor
1Jan 8, 2010, 10:33:47 PM~Wendy Asakiverettu  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software Support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility